popover: raise when showing
authorOlivier Fourdan <ofourdan@redhat.com>
Thu, 24 Mar 2016 10:32:24 +0000 (11:32 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Fri, 25 Mar 2016 16:23:34 +0000 (17:23 +0100)
Some other widget might have mapped and raised another child window of
the toplevel in the meantime, causing the popover window to be covered.

Raise the popover window to avoid the issue.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=763627

gtk/gtkwindow.c

index 744966885b9f2de81cf8d59a259f652ce38bfeb8..83ad2164ac3bee119b726902cd6722fb3d79fc9b 100644 (file)
@@ -7623,7 +7623,7 @@ gtk_window_restack_popovers (GtkWindow *window)
       GtkWindowPopover *popover = link->data;
       link = link->next;
 
-      if (popover->window && gdk_window_is_visible (popover->window))
+      if (popover->window)
         gdk_window_raise (popover->window);
     }
 }
@@ -12398,6 +12398,7 @@ _gtk_window_raise_popover (GtkWindow *window,
       g_list_free (link);
       break;
     }
+  gtk_window_restack_popovers (window);
 }
 
 static GtkWidget *inspector_window = NULL;